package com.sunda.spmsorder.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmsorder.entity.MaterialApplication;
import com.sunda.spmsorder.entity.MaterialApplicationDtl;
import com.sunda.spmsorder.entity.vo.MaterialApplicationQueryResultVo;
import com.sunda.spmsorder.entity.vo.MaterialApplicationQueryVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文件操作 服务类
 * </p>
 *
 * @author Wayne
 * @since 2021-05-21
 */
public interface IFileOperationService {

    /**
     * 保存物料申请信息到本地Excel文件
     * @param materialApplication
     * @param materialApplicationDtlList
     * @param filename
     * @return
     */
    String saveMaterialApplicationExcel(MaterialApplication materialApplication, List<MaterialApplicationDtl> materialApplicationDtlList, String filename);

    /**
     * 保存物料图片信息到本地
     * @param file
     * @return 本地缓存路径
     */
    String saveMaterialApplicationPic(MultipartFile file, String filename);

        /**
         * 使用MinIO上传文件
         * @return
         */
    String fileUploader(String filename, String localFilePath);

}
